package org.ticlib.navigator
{
	import mx.collections.ArrayCollection;
	
	public interface IPage
	{
		/**
		 * uniqe name of page
		 */		
		function get pageName():String;
		
		function get pageTitle():String
		
		/**
		 * list of roles allowed to access the page
		 * return null mean the current page didn't need authentication access
		 */		
		function get authorizedRoles():Array;
		
		/**
		 * loading data process done here. load function always called after page navigated. 
		 * @params: parameter passed by other page
		 * @reload: true if Navigator.reload() called. otherwise false. mark that in a normal navigation reload value is false.
		 */		
		function load(params:Object, reload:Boolean):void;
	}
}